import App from './App'
import { myRequest} from './util/api.js'
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$myRequest = myRequest
Vue.filter('formatDate',(date) => {
	const nData = new Date(date)
	const year = nData.getFullYear()
	const month = nData.getMonth().toString().padStart(2,0)
	const day = nData.getDay().toString().padStart(2,0)
	return year + ' - ' + month + ' - ' + day
})
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif